package com.gongpingjialoan.data;

/**
 * Created by Administrator on 2016/2/17.
 */
public class FindCarData {

//    public static FindCarData instance;
//
//    public static FindCarData getInstance() {
//        if (instance == null) {
//            return instance = new FindCarData();
//        }
//        return instance;
//    }

    private String isRegister = "false";
    private String brandSlug = "";
    private String modelSlug = "";
    private String model_detailSlug = "";
    private String brandName = "";
    private String modelName = "";
    private String model_detailName = "";
    private boolean isCanClick = true;
    private String price = "";       //车价  默认
    private String year = "";   //车龄  默认
    private String vehicle_model = "";     //车型
    private String car_type = "";      //车辆属性
    private String car_source = "";   //车源类型  (多选)
    private String car_speedchange = "";     //变速箱 (多选)
    private String car_displacement = "";      //排量    (单选)
    private String car_color = "";

    private String show_price = "";
    private String show_age = "";
    private String show_vehicle_model = "";
    private String show_car_type = "";
    private String show_source = "";
    private String show_speedchange = "";
    private String show_displacement = "";
    private String show_color = "";
    private String city = "";

    public boolean isCanClick() {
        return isCanClick;
    }

    public void setIsCanClick(boolean isCanClick) {
        this.isCanClick = isCanClick;
    }

    public String getCar_color() {
        return car_color;
    }

    public void setCar_color(String car_color) {
        this.car_color = car_color;
    }

    public String getShow_color() {
        return show_color;
    }

    public void setShow_color(String show_color) {
        this.show_color = show_color;
    }

    public String getIsRegister() {
        return isRegister;
    }

    public void setIsRegister(String isRegister) {
        this.isRegister = isRegister;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCar_source() {
        return car_source;
    }

    public void setCar_source(String car_source) {
        this.car_source = car_source;
    }

    public String getCar_speedchange() {
        return car_speedchange;
    }

    public void setCar_speedchange(String car_speedchange) {
        this.car_speedchange = car_speedchange;
    }

    public String getCar_displacement() {
        return car_displacement;
    }

    public void setCar_displacement(String car_displacement) {
        this.car_displacement = car_displacement;
    }

    public String getShow_source() {
        return show_source;
    }

    public void setShow_source(String show_source) {
        this.show_source = show_source;
    }

    public String getShow_speedchange() {
        return show_speedchange;
    }

    public void setShow_speedchange(String show_speedchange) {
        this.show_speedchange = show_speedchange;
    }

    public String getShow_displacement() {
        return show_displacement;
    }

    public void setShow_displacement(String show_displacement) {
        this.show_displacement = show_displacement;
    }

    public String getShow_age() {
        return show_age;
    }

    public void setShow_age(String show_age) {
        this.show_age = show_age;
    }

    public String getShow_vehicle_model() {
        return show_vehicle_model;
    }

    public void setShow_vehicle_model(String show_vehicle_model) {
        this.show_vehicle_model = show_vehicle_model;
    }

    public String getShow_car_type() {
        return show_car_type;
    }

    public void setShow_car_type(String show_car_type) {
        this.show_car_type = show_car_type;
    }

    public String getShow_price() {
        return show_price;
    }

    public void setShow_price(String show_price) {
        this.show_price = show_price;
    }

    //清除数据
    public void clear() {
        brandSlug = "";
        modelSlug = "";
        model_detailSlug = "";
        brandName = "";
        modelName = "";
        model_detailName = "";
        city = "";
        price = "";       //车价  默认
        year = "";   //车龄  默认
        vehicle_model = "";     //车型
        car_type = "";
        car_source = "";   //车源类型  (多选)
        car_speedchange = "";     //变速箱 (多选)
        car_displacement = "";      //排量    (单选)
        car_color = "";
        show_color = "";
        show_age = "";
        show_vehicle_model = "";
        show_car_type = "";
        show_price = "";
        show_source = "";
        show_speedchange = "";
        show_displacement = "";
        isCanClick = true;
        isRegister = "false";
    }

    public void clearModelData(){
        vehicle_model = "";     //车型
        car_type = "";
        car_speedchange = "";     //变速箱 (多选)
        car_displacement = "";      //排量    (单选)

        show_vehicle_model = "";
        show_car_type = "";
        show_speedchange = "";
        show_displacement = "";
    }


    public boolean isEmpty() {
        if (brandSlug.isEmpty() && price.isEmpty() && year.isEmpty() && vehicle_model.isEmpty() && car_type.isEmpty() && car_source.isEmpty() && car_speedchange.isEmpty() && car_displacement.isEmpty()) {
            return true;
        }
        return false;
    }


    public void cleanBrand() {
        brandSlug = "";
        modelSlug = "";
        model_detailSlug = "";
        brandName = "";
        modelName = "";
        model_detailName = "";
    }

    public String getBrandSlug() {
        return brandSlug;
    }

    public void setBrandSlug(String brandSlug) {
        this.brandSlug = brandSlug;
    }

    public String getModelSlug() {
        return modelSlug;
    }

    public void setModelSlug(String modelSlug) {
        this.modelSlug = modelSlug;
    }

    public String getModel_detailSlug() {
        return model_detailSlug;
    }

    public void setModel_detailSlug(String model_detailSlug) {
        this.model_detailSlug = model_detailSlug;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModel_detailName() {
        return model_detailName;
    }

    public void setModel_detailName(String model_detailName) {
        this.model_detailName = model_detailName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getVehicle_model() {
        return vehicle_model;
    }

    public void setVehicle_model(String vehicle_model) {
        this.vehicle_model = vehicle_model;
    }

    public String getCar_type() {
        return car_type;
    }

    public void setCar_type(String car_type) {
        this.car_type = car_type;
    }
}
